<?php
$ms = "Shop";
$subMenu = "shop-menu.php";
include "header.php";
?>
<div class="cornerAll">
	<ul class="breadcrumb">
		<li><a href="index.php" class="fist_link">Home</a></li>
		<li><a href="shop.php" class="second_link">Shop</a></li>
		<li><a href="presses.php">Presses</a></li>
	</ul>
	<div class="left">
		<a href="add-press.php" class="bt">Add press</a>
		<table>
			<thead>
				<tr>
					<th>Press</th>
					<th>Type</th>
					<th>Year</th>
					<th>Colours</th>
					<th>Specials</th>
					<th>Sheet size</th>
					<th></th>
				</tr>
			</thead>
			<tbody>
				<?php drawRows();?>
			</tbody>
		</table>	
		
	<?php 
	include "page-numbers.php";
	?>			
	</div>
	<div class="right">
	<h2>Search</h2>
		<?php 
		$search = new Form();
		$search->addField("text","Machine number");
		$search->addField("text","Manufacturer");
		$search->addField("text","Sheet size");
		$search->addField("text","Colours");
		$search->addField("text","Special features");
		$search->addField("combo","In stock");
		$search->button("Search");
		$search->draw();
		?>
	</div>
	<div class="clear"></div>
</div>
<?php  
function drawRows(){
	for($i = 0; $i < 10; $i++){
	?>
		<tr>
			<td><a href="press.php">Heidelberg SM 52 - 2 P</a></td>
			<td>Cutter</td>
			<td>1996</td>
			<td>v</td>
			<td>Perfecting</td>
			<td>B3 (50cms / 20)</td>
			<td><a href="press.php">View</a></td>
		</tr>
	<?php 
	}
}
include "footer.php";
?>